<template>
  <form action="/">
    <van-search
      v-model="value"
      show-action
      placeholder="请输入搜索关键词"
      @search="onSearch"
      @cancel="onCancel"
    />
  </form>
</template>

<script>
import { ref } from 'vue'
import { Toast } from 'vant'
export default {
  setup() {
    const value = ref('')
    return { value }
  },
}
</script>

<style></style>
